package cn.itlaobing.model;

import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;

import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main2 {
	public static void main(String[] args) {
		//创建访问路径，
		String s="classpath:cn/itlaobing/model/inject-list.xml";
		//建立容器
		AbstractApplicationContext aac=new ClassPathXmlApplicationContext(s);
		School ss=aac.getBean("School", School.class);
		List<String> list=ss.getSname();
		for(String sss:list)
		{
			System.out.println(sss);
		}
		Set<String> set=ss.getSport();
		for(String ssss:set)
		{
			System.out.println(ssss);
		}
		Map<String,String> map=ss.getMusic();
		for(Entry<String, String> a:map.entrySet())
		{
			System.out.println(a.getKey()+"~~~~~~~~~"+a.getValue());
		}
	}
}
